<template>
  <div>
    <h4>注意事项</h4>
    <el-row type="flex" justify="space-between">
      <el-col>
        <div>
          <el-select v-model="pgForm.zhuysx11" @change="select_zhuysx">
            <el-option
              v-for="item in zhuysxs"
              :key="item.val"
              :label="item.val"
              :value="item.val">
            </el-option>
          </el-select>
        </div>
      </el-col>
      <el-col>
        <el-input
          type="textarea"
          autosize
          placeholder="请输入内容"
          v-model="pgForm.zhuysx">
        </el-input>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "xfzzkfpgb_zhuysx",
  title: "注意事项",
  created() {
    if (this.istrans) {
      this.pgForm = this.fromdata
    }
  },
  props: {
    fromdata: {},
    istrans: false,
  },
  data() {
    return {
      //注意事项
      zhuysxs: [{"val": "危急期——病情恶化或未受控(如需增加强心药剂量或呼吸机支持）病人处于昏睡状态。", "text": ""},
        {
          "val": "稳定期——病情平稳或受控制（加强心药剂量或呼吸机支持保持平稳或减少）病人处于昏睡状态或能执行简单口令。",
          "text": ""
        },
        {"val": "康复期——病情持续改善，病人清醒，能执行口令。", "text": ""}],
      pgForm: {
        zhuysx11: '',
        //注意事项
        zhuysx: '',
      },
    }
  },
  methods: {
    select_zhuysx() {
      this.pgForm.zhuysx = this.pgForm.zhuysx11
    },
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-select {
  width: 60%;
}
</style>
